import { LocaleProvider, message } from 'antd';
import * as React from 'react';
import { BrowserRouter } from "react-router-dom";
import zhCN from 'antd/lib/locale-provider/zh_CN';
import AppLayout from './components/layout/AppLayout';
import { CoreMessageProvider } from 'src/common/core/providers/message';
// import logo from './logo.svg';

import './common/style/index.less';

class App extends React.Component {
  public componentDidMount() {
    CoreMessageProvider.current.registerMessage(message)
  }

  public render() {
    return (
      <LocaleProvider locale={zhCN}>
        <BrowserRouter>
          <AppLayout />
        </BrowserRouter>
    </LocaleProvider>
    );
  }
}

export default App;
